package com.hmdp.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {
    @Bean
    public Queue cacheDeleteRetryQueue() {
        // 正确声明持久化队列，无需强制转换
        return QueueBuilder.durable("cache:delete:retry").build();
    }
}